package com.mykt.controller;

import com.mykt.baseResult.BaseController;
import com.mykt.baseResult.RespondsResult;
import com.mykt.domain.SystemLoginLog;
import com.mykt.service.SystemLoginLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 用户登录日志
 */
@RestController
@RequestMapping("/mykt/system/loginLog")
public class SystemLoginLogController extends BaseController
{
    @Autowired
    private SystemLoginLoginService logininforService;

   //@MyAuthority("system:loginLog:add")
    @PostMapping(value = "/add")
    public RespondsResult add(@RequestBody SystemLoginLog logininfor)
    {
        return responds(logininforService.insertLoginLog(logininfor));
    }

}
